# Simple helpers for building the LubanCat 5 BTB AXPLAT workspace.

CARGO ?= cargo
APP ?= axplat-aarch64-luban5btb
MODE ?= release

ifeq ($(MODE),release)
	MODE_ARGS := --release
endif

.PHONY: build check fmt clean

build:
	$(CARGO) build -p $(APP) $(MODE_ARGS)

check:
	$(CARGO) clippy -p $(APP) --all-targets --no-deps

fmt:
	$(CARGO) fmt

clean:
	$(CARGO) clean
	rm -f .axconfig.toml
